<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关网站管理后台</title>
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/invalid.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
        <link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
		<link rel="stylesheet" href="../js-plugin/uploadify/uploadify.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/interact/ContributeEdit.css" type="text/css" media="screen" />
        <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.validate.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/additional-methods.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
        <script type="text/javascript" src="../js-plugin/tiny_mce/jquery.tinymce.js">
        </script>
        <script type="text/javascript" src="../js-plugin/uploadify/jquery.uploadify.v2.1.4.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/uploadify/swfobject.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.form.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/interact/ContributeEdit.js">
        </script>
    </head>
    <body>
    	<input id="hidd_mainphoto" value="${(article.mainphoto)!}" type="hidden" />
		<input id="hidd_status" value="${(article.status)!}" type="hidden" />
        <div class="loadingbox clearfix">
        </div>
        <div id="main-content_editor">
            <div class="content-box">
                <div class="content-box-header">
                    <h3>在线投稿</h3>
                    <div class="clear">
                    </div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                        <form id="articleEditor" action="/action/interact/SaveContributeEdit" method="post">
                            <input type="hidden" id="articleid" name="id" value="${(article.id?c)!}" />
                            <fieldset>
                                <p>
                                    <label class="inline">文章标题</label>
                                    <input class="text-input large-input" type="text" id="title" name="title" value="${(article.title)!}" />
                                </p>
                                <div id="status-message">
                                </div>
                                <div id="custom-queue">
                                </div>
                                <div id="fileInputUploader" />
                                <p>
                                    <label>
                                        <span id="images_file" name="file_upload" style="display:none"></span>
                                        <span id="attachment_file" name="file_upload" style="display:none"></span>
                                    </label>
                                    <textarea class="text-input textarea tinymce" id="content" name="content" cols="79" rows="15">${(article.content)!}</textarea>
                                </p>
                                <div class="notification attention png_bg post-state" style="display:none">
                                    <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                                    <div id="article-msg">
                                    </div>
                                </div>
                                <p class="BtnDiv">
                                    <a href="#" class="button resetBtn" title="您确定重置表单么？">清 空 重 写</a>
                                    <a href="#" class="button saveBtn">保 存 文 章 </a>
                                </p>
                            </fieldset>
                        </form>
                        <div class="notification attention png_bg attachmentMSG" style="display:none">
                            <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                            <div id="attachment_msg">
                            </div>
                        </div>
                        <div class="content-box attachment" style="display:none;">
                            <div class="content-box-header">
                                <h3>文章附件管理</h3>
                                <ul class="content-box-tabs">
                                    <li>
                                        <a href="#tab1" class="default-tab">上传图片管理</a>
                                    </li>
                                    <li>
                                        <a href="#tab2">上传附件管理</a>
                                    </li>
                                </ul>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="content-box-content" style="min-height: 70px;">
                                <div class="tab-content default-tab" id="tab1">
                                    <div id="photo-preview">
                                        <#list photos.list(article.id?number) as photo>
                                        <li>
                                            <img src="${(photo.thumbpath)!}" />
                                            <br/>
                                            <input name="mainphoto" type="radio" value="${(photo.fileserverpath)!}" />设为主题图片
                                            <br/>
                                            <p>
                                                <a href="${(photo.id?c)!}" class="button delphoto" title="您确定删除该图片么？">删除图片 </a>
                                            </p>
                                        </li>
                                        </#list>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="tab-content" id="tab2">
                                    <div id="attachment-preview">
                                        <#list files.list(article.id?number) as file>
                                        <li>
                                            <span><a href="${(file.id?c)!}" class="delFile" title="您确定删除该文件么？">删除 </a></span>
                                            <b>${(file.originalname)!}</b>
                                        </li>
                                        </#list>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="photo-preview-tpl" style="display:none;">
                            <li>
                                <img src="" />
                                <br/>
                                <input name="mainphoto" type="radio" value="" />设为主题图片
                                <br/>
                                <p>
                                    <a href="0" class="button delphoto" title="您确定删除该图片么？">删除图片 </a>
                                </p>
                            </li>
                        </div>
                        <div id="attachment-preview-tpl" style="display:none;">
                            <li>
                                <span><a href="" class="delFile" title="您确定删除该文件么？">删除 </a></span>
                                <b></b>
                            </li>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <input type="hidden" id="identifies" value="${session.id}" />
    </body>
</html>
